package com.atguigu.serviceedu.clients;



import com.atguigu.serviceedu.clients.vo.LoginInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @Classname MemberClient
 * @Description TODO
 * @Date 2022/9/15 17:13
 * @Created by ZHL17
 */
@Component
@FeignClient(name="service-member",fallback = MemberClientDegradeImpl.class)
public interface MemberClient {
    @PostMapping("/edumember/member/getUserInfo/{id}")
    LoginInfoVo getInfo(@PathVariable("id") String id);
}
